<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="format-detection" content="telephone=no">
  <meta name="format-detection" content="email=no">
  <title>资讯</title>
  <script src="../scripts/isPc.js"></script>
  <link rel="shortcut icon" href="../favicon.ico">
  <link rel="stylesheet" href="../styles/global.css">
  <link rel="stylesheet" href="../styles/information-detail.css">

</head>

<body>
  <header class="header clearFix">
    <nav class="nav">
      <div class="nav-r">
        <a href="./index.html">
          <img src="../images/logo.png">
          <span>万果田园</span>
        </a>
      </div>
      <ul class="navList">
        <li>
          <a href="./survey.html">概况</a>
        </li>
        <li class="active">
          <a href="./information.html">资讯</a>
        </li>
        <li>
          <a href="./business.html">业务</a>
        </li>
        <li>
          <a href="./layout.html">布局</a>
        </li>
        <li>
          <a href="./latest.html">动态</a>
        </li>
        <li>
          <a href="./record.html">全程追溯</a>
        </li>
        <li>
          <a href="./introduce-join.html">合作</a>
        </li>
        <li>
          <a href="./download.html">APP下载</a>
        </li>
      </ul>
    </nav>
  </header>
  <div class="main" id="top">
    <img class="banner" src="../images/information-detail-bg.png" alt="">
    <div class="information-detail-content">
      <div class="placeholder"></div>
    </div>
    <a href="#top" class="toTOP">
      <p>返回</p>
      <p>顶部</p>
    </a>
    <div class="btns">
      <a class="back-btn" href="information.html">返回万果资讯列表</a>
      <p>
        <span class="">上一篇：</span>
        <a href="javascript:;" class="prve-btn">万果体验店，体验美好生活</a>
      </p>
      <p>
        <span class="">下一篇：</span>
        <a href="javascript:;" class="next-btn">已经是最后一篇了</a>
      </p>
    </div>
  </div>
  <footer>
    <div class="footer-top clearfix">
      <div class="foot-l l">
        <p class="phone">电话：400-017-5917</p>
        <p class="email">邮箱：postmaster@wggyl.cn</p>
        <p class="address">地址：北京市丰台区新发地京良桥西南侧2000米路北丰合顺市场5号交易厅商01号</p>
      </div>
      <div class="foot-r r">
        <p>
          <img src="../images/erweima.png" alt="">
        </p>
        <p>扫一扫 关注我们</p>
      </div>
    </div>
    <div class="foot-b">万果供应链有限公司&nbsp;&nbsp;&nbsp;&nbsp;京ICP备17068845号</div>
  </footer>
  <div class="loading">
    <div class="load-gif"></div>
  </div>
  <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
  <script>
    ~(function (params) {
      var cwh = $('body').width(),
        title = '',
        time = '',
        brief = '',
        imgtext = '',
        pre = '',
        next = ''
      if (cwh > 1304) {
        $('.toTOP').css('right', (cwh - 1304) / 2 * 0.57 + 'px')
      } else {
        $('.toTOP').css({
          'right': '0'
        })
      }

      function getInfoDetail() {
        $('.loading').show()
        // var ip = 'http://192.168.2.222:82',
        var ip = 'https://check-h5.wanguowang.com',
          id = location.href.split('=')[1]
        $.ajax({
          type: 'get',
          url: ip + '/wap/news/selectInforDetail?id=' + id,
          success: function (res) {
            $('.loading').hide()
            if (res.result.state != '1') {
              $('.paceholder').show();
              return
            }
            $('.information-detail-content').html(
              `<div class="title">${res.data.title}</div>
                <div class="date">发布时间：${res.data.deplayTime}</div>
                <div class="hr"></div>
                <div class="text">${res.data.imageText}</div>`
            );
            if (res.data.preTitle == null && res.data.preId == null) {
              $('.prve-btn').html('已经是第一篇了')
            } else {
              $('.prve-btn').html(res.data.preTitle).attr('href', 'information-detail.html?id=' + res.data.preId)
            }
            if (res.data.nextTitle == null && res.data.nextId == null) {
              $('.next-btn').html('已经是最后一篇了')
            } else {
              $('.next-btn').html(res.data.nextTitle).attr('href', 'information-detail.html?id=' + res.data.nextId)
            }
          }
        })
      }
      getInfoDetail()
    })();
    $(window).scroll(function (e) {
      var cht = document.documentElement.clientHeight,
        ctp = document.documentElement.scrollTop,
        top = document.documentElement.scrollHeight,
        diff = top - ctp - cht
      if (diff < 310) {
        $('.toTOP').css('bottom', 356 - diff + 'px')
      } else {
        $('.toTOP').css('bottom', '50px')
      }
      if (350 > ctp) {
        $('.toTOP').fadeOut()
      } else {
        $('.toTOP').fadeIn()
      }
    });
  </script>
</body>

</html>
